package com.example.androidxdemo.dao

import androidx.room.*
import com.example.androidxdemo.entity.Function

/**
 * Create by 姚冰
 * on 2020/7/21
 */
@Dao
interface FunctionDao {
    @Query("SELECT * FROM Function")
    fun getFunctionList() : List<Function>

    @Insert
    fun addFunction(vararg function: Function)

    @Delete
    fun delete(function: Function)

    @Update
    fun update(function: Function)
}